<?php 
namespace XFCore\traits\admin;
trait QrlistTrait{
    public function qrlistdelete(){
        if($this->islogin_admin!=1)exitjson(-1,'请先登录');
        $id = input("post")['id'];
        if(empty($id))exitjson(-1,'非法操作');
        $row = $this->db->qrlistrow($id,'id','id');
        if(empty($row))exitjson(-1,'该二维码数据不存在！');
        if($this->db->delete("qrlist",['id'=>$id])){
            createLog("删除二维码成功！ID:".$id,http_ip(),'admin');
            exitjson(200,'删除成功！');
        }
        exitjson(-1,'删除失败！');
    }
}